package cheme.ProcessEditor.Parts;

import java.util.List;

import org.eclipse.gef.editparts.AbstractGraphicalEditPart;

import cheme.ProcessModel.IModelElement;
import cheme.ProcessModel.Annotations.IAnnotation;

public abstract class ChemeEditPart extends AbstractGraphicalEditPart
{
	public List<IAnnotation> getModelAnnotations()
	{
		return getModel().getAnnotations();
	}
	
	@Override
	public IModelElement getModel()
	{
		return (IModelElement)super.getModel();
	}
	
//	@Override
//	public IChemeFigure getFigure()
//	{
//		return (IChemeFigure)super.getFigure();
//	}
		
	@Override
	public String toString()
	{
		return getModel().toString();
	}
}
